import { useSearchParams } from "umi";

const AAA = ()=>{
    // 当前 location /comp?a=b;
    // Tag 获取路由参数：param参数
const [searchParams, setSearchParams] = useSearchParams();
const a = searchParams.get('a')  // b
console.log(`a is ${a}`);
    return (
        <div>aaa</div>
    )
}
export default AAA;